<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/14 014
 * Time: 17:28
 */

namespace App\Command;


class MacroCommand implements Command
{
    public $commands;

    public function __construct($commands)
    {
        $this->commands = $commands;

    }

    public function execute()
    {
        // TODO: Implement execute() method.
        for($i=0;$i<count($this->commands);$i++) {
            $this->commands[$i]->execute();
        }
    }

    public function undo()
    {
        // TODO: Implement undo() method.
    }

}